package com.woniuxy.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.woniuxy.entity.Lessee;
import com.woniuxy.mapper.LesseeMapper;
import com.woniuxy.service.LesseeService;
@Service
public class LesseeServiceImpl implements LesseeService{
	@Autowired
	private LesseeMapper lesseeMapper;
	@Override
	public List<Lessee> findAllLessee() {
		return lesseeMapper.findAllLessee();
	}

	@Override
	public List<Lessee> findLesseeByStatus(int status) {
		return lesseeMapper.findLesseeByStatus(status);
	}

	@Override
	public List<Lessee> findLesseeByWords(String words) {
		return lesseeMapper.findLesseeByWords(words);
	}

	@Override
	public int insertLessee(Lessee lessee) {
		return lesseeMapper.insertLessee(lessee);
	}

	@Override
	public int delByLid(int lid) {
		return lesseeMapper.delByLid(lid);
	}

}
